<?php if ($this->pageCount): 


if (isset($this->previous)):

	echo "<span class='paginatorPage prev'>".$this->translate('prev')."</span>";

else:

	echo "<span class='paginatorPage disabled prev' >".$this->translate('prev')."</span>";

endif;

foreach ($this->pagesInRange as $page): 
   
	if ($page != $this->current): 
  
  		echo "<span class='paginatorPage'>$page</span>";
  
  	else:
  	
  		echo "<span class='currentPage'>$page</span>";

  	endif;
  	
endforeach;
?>

<!-- Next page link -->
<?php 
if (isset($this->next)): 

	echo "<span class='paginatorPage next'>".$this->translate('next')."</span>";

else:

	echo "<span class='paginatorPage disabled next' >".$this->translate('next')."</span>";

endif;

endif; ?>